package highTech.classloader;

import java.util.Date;

public class ClassLoaderTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception{
//		System.out.println(ClassLoaderTest.class.getClassLoader().getClass().getName());
//		
//		System.out.println(System.class.getClassLoader());
//		
//		ClassLoader loader=ClassLoaderTest.class.getClassLoader();
//		while(loader!=null){
//			System.out.println(loader.getClass().getName());
//			loader=loader.getParent();
//		}
//		System.out.println(loader);
		
		//System.out.println(new MyClassLoaderAttachment().toString());

		Class clazz=new MyClassLoader().loadClass("");
		System.out.println("xxxxxxxxxxxx"+clazz.getClassLoader());
		IAttachment d1=(IAttachment)clazz.newInstance();
		System.out.println(d1.getInt());
	}

}
